import Layout from '@/layout'


const hidden = true
const affix = true
const noCache = true

export default [
  {
    path: '/policy',
    component: Layout,
    redirect: { name: 'PolicyPublish' },
    meta: { title: '政策库', icon: 'component' },
    children: [
      {
        path: 'publish',
        component: (resolve) => require(['@/views/policy/publish/index'], resolve),
        name: 'PolicyPublish',
        meta: { title: '政策发布' }
      },
      {
        path: 'review',
        component: (resolve) => require(['@/views/policy/review/index'], resolve),
        name: 'PolicyReview',
        meta: { title: '发布审核' },
      },
      {
        path: 'overview',
        component: (resolve) => require(['@/views/policy/overview/index'], resolve),
        name: 'PolicyOverview',
        meta: { title: '政策一览' },
      },
      {
        path: 'policyPublishAdd',
        component: (resolve) => require(['@/views/policy/publish/add/index'], resolve),
        name: 'PolicyPublishAdd',
        meta: { title: '新增', hidden: true, activeMenu: "/policy/publish" }
      },
      {
        path: 'PolicyPublishEdit',
        component: (resolve) => require(['@/views/policy/publish/edit/index'], resolve),
        name: 'PolicyPublishEdit',
        meta: { title: '修改', hidden: true, activeMenu: "/policy/publish" }
      },
      {
        path: 'PolicyPublishDetail',
        component: (resolve) => require(['@/views/policy/publish/detail/index'], resolve),
        name: 'PolicyPublishDetail',
        meta: { title: '详情', hidden: true, activeMenu: "/policy/publish" }
      },
      // 发布审核下的审核 和 详情
      {
        path: 'review/PolicyReviewAdd',
        component: (resolve) => require(['@/views/policy/review/add/index'], resolve),
        name: 'PolicyReviewAdd',
        meta: { title: '审核', hidden: true, activeMenu: "/policy/review" }
      },
      {
        path: 'review/AuditPolicyDetail',
        component: (resolve) => require(['@/views/policy/review/add/reviewDetail/index'], resolve),
        name: 'AuditPolicyDetail',
        meta: { title: '发布详情', hidden: true, activeMenu: "/policy/review" }
      },
      //政策一览 下的 详情
      {
        path: 'overview/PolicyOverviewDetail',
        component: (resolve) => require(['@/views/policy/overview/detail/index'], resolve),
        name: 'PolicyOverviewDetail',
        meta: { title: '政策一栏详情', hidden: true, activeMenu: "/policy/overview" }
      }
    ],
  },


]

